package dto

import "tuowei.com/common/dto"

type GetClassListsRequest struct {
	dto.Pagination `search:"-"`
	Status         int `form:"status" json:"status" search:"type:exact;column:status;table:sys_class"`
	Area           int `form:"area" json:"area" search:"type:exact;column:dept_id:status;table:sys_class"`
}

func (c *GetClassListsRequest) GetNeedSearch() interface{} {
	return *c
}

type ClassDetailRequest struct {
	Id int `uri:"id"`
}
type ClassStudentRequest struct {
	Id   int    `form:"id" json:"id" binding:"required"`
	Name string `form:"name" json:"name"`
}

type RemoveStudentsRequest struct {
	StudentIds []int  `json:"student_ids" binding:"required"`
	ClassId    int    `json:"class_id" binding:"required"`
	FlowTo     string `json:"flow_to" binding:"required"`
}
